package cn.ilovese.collect.datamapper.follow;

import cn.ilovese.collect.po.follow.Follow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FollowMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Follow record);

    int insertSelective(Follow record);

    Follow selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Follow record);

    int updateByPrimaryKey(Follow record);

    int deleteByTwoWorker(@Param(value = "firstId") Integer firstId, @Param(value = "secondId") Integer secondId);

    List<Follow> selectByFirstId(Integer firstId);

    List<Follow> selectBySecondId(Integer followingId);
}